import config from "./config.js"
import axios from "axios"
 
export default {
    install: function (vue) {
        var auth = vue.prototype.$auth
        var obj = axios.create({
            basrURL:config.basrURL
        })
        obj.interceptors.request.use(function (conf) {
            conf.headers.Authorization = auth.getAuthorization()
            return conf
        })
        vue.prototype.$http = obj
    }
}